package com.fz.entity;

import com.fz.core.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * <p>
 * 存储住户投诉信息
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Complain extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 投诉类型
     */
    private String type;

    /**
     * 投诉内容
     */
    private String content;

    /**
     * 投诉用户ID（外键）
     */
    private Long userId;

    /**
     * 状态（0=未处理,1=处理中,2=已完成）
     */
    private Integer status;

    /**
     * 提交时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;


    public Complain(Long id, Integer status,Integer statu) {
        super(id);
        this.status = statu;
    }


    public Complain(Long id,String type,String content,Long userId,LocalDateTime handleTime,Integer status)
    {
        super(id);
        this.type=type;
        this.content=content;
        this.userId=userId;
        this.createTime=handleTime;
        this.status=status;
    }

    public Complain(Long id,Integer status)
    {
        super(id);
        this.status=status;
    }
    public Complain(Long userId, String type, String content){
        this.type=type;
        this.content=content;
        this.userId=userId;
    }

}
